<?php

/**
 * Tabela do texto inicial.
 *
 * @author Fernando Dias Oliveira <rodox17@gmail.com>
 * @package lore
 * @subpackage model
 */

class caf10 extends Zend_Db_Table_Abstract  
{
	protected $_table   = "caf10";
	protected $_primary = "caf10_cod";
	
	public function getAll()
	{
		return $this->fetchAll()->toArray();
	}
	
	public function getDropDrow()
	{
		$arr   = array();
		
		$arr[""] = "Todos";
		
		foreach ($this->fetchAll() as $val)
		{
			$arr[$val["caf10_cod"]] = $val["caf10_forma_pagamento"];
		}
		
		return $arr;
	}
}

?>
